#ifndef __MEMCACHE_H__
#define __MEMCACHE_H__

typedef struct Memcache{
    struct Conn *c;        /* The conn of Uptream */
    int method;
    String key;
    String value;
    size_t rest;
}Memcache;

#define MC_GET_METHOD 1
#define MC_SET_METHOD 2


int MC_AddCommand(struct Upstream *up, int method, String *str);
int MC_ParseResponse(struct Upstream *up);

#endif

